// 防具 属性计算
export function calcFJ(data, name) {
    // console.log(data, name)
    
    let hp = data.ehp ? Number(data.ehp.split('+')[1]) : 0
    let ewlgj = data.ewlgj ? Number(data.ewlgj.split('+')[1]) : 0
    let mfzfl = data.emfzfl ? Number(data.emfzfl.split('+')[1]) : 0
    let wlzm = data.ewlzm ? Number(data.ewlzm.split('+')[1]) : 0

    

    let fjYiFu = {}
    let fjXiaYi = {}
    let fjHuJian = {}
    let fjShouTao = {}
    let fjXieZi = {}

    if (name == 'fjYiFu') {
        fjYiFu.hp = hp
        fjYiFu.ewlgj = ewlgj
        fjYiFu.mfzfl = mfzfl
        fjYiFu.wlzm = wlzm
        return fjYiFu
    }
    if (name == 'fjXiaYi') {
        fjXiaYi.hp = hp
        fjXiaYi.ewlgj = ewlgj
        fjXiaYi.mfzfl = mfzfl
        fjXiaYi.wlzm = wlzm
        return fjXiaYi
    }
    if (name == 'fjHuJian') {
        fjHuJian.hp = hp
        fjHuJian.ewlgj = ewlgj
        fjHuJian.mfzfl = mfzfl
        fjHuJian.wlzm = wlzm
        return fjHuJian
    }
    if (name == 'fjShouTao') {
        fjShouTao.hp = hp
        fjShouTao.ewlgj = ewlgj
        fjShouTao.mfzfl = mfzfl
        fjShouTao.wlzm = wlzm
        return fjShouTao
    }
    if (name == 'fjXieZi') {
        fjXieZi.hp = hp
        fjXieZi.ewlgj = ewlgj
        fjXieZi.mfzfl = mfzfl
        fjXieZi.wlzm = wlzm
        return fjXieZi
    }
}